<template>
	<text class="soupContent" :style="{'-webkit-line-clamp': maxline}">
		别跟傻瓜吵架，\n不然旁人会搞不清，\n到底谁是傻瓜。\n
		别跟傻瓜吵架，\n不然旁人会搞不清，\n到底谁是傻瓜。
	</text>

	<view class="author">
		<view class="line"></view>
		<view class="outer">
			<view class="userinfo">
				<view class="avatar">
					<image src="../../static/logo.png" mode="aspectFill"></image>
				</view>
				<view class="name">张三</view>
				<view class="from">摘自：红楼梦</view>
			</view>
			<view class="number" v-if="lookState">共33人看过</view>
		</view>
	</view>
</template>

<script setup>
	defineProps({
		maxline:{
			type:[String, Number],
			default: 'none'
		},
		lookState:{
			type: Boolean,
			default: false
		}
	})

</script>

<style lang="scss" scoped>
	.soupContent {
		font-size: 50rpx;
		font-weight: lighter; // 字体细体
		letter-spacing: 0.05em; // 字母间距 0.05个字符间距
		line-height: 1.8em; // 字母行高

		margin-top: 10rpx;
		margin-bottom: 60rpx;

		@include maxline()
	}

	.author {
		.line {
			width: 70rpx;
			height: 5rpx;
			background: #f0f0f0;
			margin-bottom: 30rpx;
		}
		.outer{
			display: flex;
			justify-content: space-between;
			align-items: center;
			.number{
				font-size: 26rpx;
				color: #999;
			}
			.userinfo {
				display: flex;
				align-items: center;
				font-size: 26rpx;
				// background: #888;
				width: fit-content;
			
				.avatar {
					width: 40rpx;
					height: 40rpx;				
					image {
						width: 100%;
						height: 100%;
					}
				}				
				.name {
					padding-left: 12rpx;
				}				
				.from {
					padding-left: 12rpx;
				}
			}
		}


	}
</style>